/**
 * 
 */
package com.boot.springBoot.entity.annotations;

import java.util.ArrayList;
import java.util.List;

import ch.qos.logback.core.net.SyslogOutputStream;

/**
 * @author Administrator
 *
 */
public class TestAnnotations {
	
	@MyAnnotations(age = "我是22")
	public String age;
	
	@MyAnnotations(name = "在下有名")
	public String name;
	
	public static void main(String[] args) throws IllegalArgumentException, IllegalAccessException {
//		TestAnnotations test = new TestAnnotations();
//		Testreflectively.init(test);
//		System.out.println(test.age);
//		System.out.println(test.name);
		List<String> names =new ArrayList<>();
		names.add("baidu");
		names.add("Google");
		names.add("taobao");
		
		names.forEach(na ->{
			if(na.equals("baidu")) {
				na = "QiE";
			}
			System.out.println("na=="+na);
		});
		
	}
}
